// 9.封装axios公共请求头携带token
import axios from "axios";

axios.interceptors.request.use((config)=>{
    config.headers.Authorization = localStorage.getItem('token')
    return config
})
axios.interceptors.response.use((data)=>{
    return data.data
})

export default axios